using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;

namespace PCR.Converter
{
	public class BoolEnableConverter : IValueConverter
	{
		public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
		{
			return new SolidColorBrush(System.Convert.ToBoolean(value) ? Colors.Blue : Colors.Gray);
		}

		public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
		{
			return null;
		}
	}
}
